<?php $this->pageTitle= UserModule::t('View Profile Field').' - '.Yii::app()->name;?>

<?php $this->beginWidget('webroot.widgets.iButtonBar');?>

<?php $this->widget('bootstrap.widgets.TbButton', array(
    'label'=>UserModule::t('Create Profile Field'),
    'type'=>'success',
    'icon'=>'plus-sign white',
    'url'=> array('create'),
));?>
<?php $this->widget('bootstrap.widgets.TbButton', array(
    'label'=>UserModule::t('Update Profile Field'),
    'type'=>'primary',
    'icon'=>'edit white',
    'url'=> array('update', 'id'=>$model->id),
));?>
<?php $this->widget('bootstrap.widgets.TbButton', array(
    'label'=>UserModule::t('Close'),
    'type'=>'primary',
    'icon'=>'remove-sign white',
    'url'=> array('admin'),
));?>
<?php $this->widget('bootstrap.widgets.TbButton', array(
    'label'=>UserModule::t('Delete Profile Field'),
    'type'=>'danger',
    'icon'=>'remove-sign white',
    'url'=> '#',
	'htmlOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>UserModule::t('Are you sure to delete this item?'))
));?>

<?php $this->endWidget();?>

<?php $this->beginWidget('webroot.widgets.iPortlet', array('title'=>UserModule::t('View Profile Field #')." \"{$model->varname}\""));?>

<?php $this->widget('bootstrap.widgets.TbDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'varname',
		'title',
		'field_type',
		'field_size',
		'field_size_min',
		'required',
		'match',
		'range',
		'error_message',
		'other_validator',
		'widget',
		'widgetparams',
		'default',
		'position',
		'visible',
	),
)); ?>
<?php $this->endWidget();?>